<!DOCTYPE html>    
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <script>
			//TypeScript  Vuejs --支持   
			
			// class Person {
			// 	String name;
			// 	int  age;
				
			// }
			// Person p = new Person();
			// p.address = "";
			
			 let now = new Date();
			 Object.prototype.age = 18;
			 
			 
             let zhangfei = new Object(); 
			 
			 
			 //动态注册属性
			 zhangfei.name = '张飞';
			console.log(zhangfei);
			console.log(zhangfei.age);
			  
			  
			  
			//定义Object  JSON
			let liubei = {
				name:"刘备",
				age:18
			}
			
			console.log("liubei",liubei)
			  
			function Person(name,age){
				this.name = name;
				this.age = age
			}
			
			let guanyu = new Person('关羽',28);
			console.log(guanyu)
			  
			  
			  
			  

        </script>
    </head>
    <body>
        <h3>请打开浏览器控制台，观察结果</h3>
    </body>
</html>
